package com.feelafter.index.bean;


import web.search.Searchable;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/2/18.
 */
public class NewsXm implements Searchable {
    private long id;
    private String districtNewsId;
    //    查询出正文信息，用于摘要
    private String content;
    //    索引正文信息为标题加正文
    private String content_index;
    //展示时间
    private String etime;
    //排序时间
    private String etimeInfo;
    //    招标发布时间
    private String stime;
    private String province;
    private String city;
    private String itemAmount;
    private String item_amount;
    private String title;
    private String qualification;
    //    地域信息:为省份与城市的结合
    private String district;
    //      去重MD5
    private String repeat_md5;
    //    去重MD5  2
    private String repeat_md5_2;



    private int infoId; //info表ID
    private int status; //状态
    //    标题信息入库时间
    private int create_time;

    private double score;

    @Override
    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getRepeat_md5() {
        return repeat_md5;
    }

    public void setRepeat_md5(String repeat_md5) {
        this.repeat_md5 = repeat_md5;
    }

    public String getRepeat_md5_2() {
        return repeat_md5_2;
    }

    public void setRepeat_md5_2(String repeat_md5_2) {
        this.repeat_md5_2 = repeat_md5_2;
    }

    public String getContent_index() {
        return content_index;
    }

    public void setContent_index(String content_index) {
        this.content_index = content_index;
    }

    public int getCreate_time() {
        return create_time;
    }

    public void setCreate_time(int create_time) {
        this.create_time = create_time;
    }

    public String getStime() {
        return stime;
    }

    public void setStime(String stime) {
        this.stime = stime;
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }

    public String getItem_amount() {
        return item_amount;
    }

    public void setItem_amount(String item_amount) {
        this.item_amount = item_amount;
    }

    public String getQualification() {
        return qualification;
    }

    public void setQualification(String qualification) {
        this.qualification = qualification;
    }

    public String getEtimeInfo() {
        return etimeInfo;
    }

    public void setEtimeInfo(String etimeInfo) {
        this.etimeInfo = etimeInfo;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDistrictNewsId() {
        return districtNewsId;
    }

    public void setDistrictNewsId(String districtNewsId) {
        this.districtNewsId = districtNewsId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getEtime() {
        return etime;
    }

    public void setEtime(String etime) {
        this.etime = etime;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getItemAmount() {
        return itemAmount;
    }

    public void setItemAmount(String itemAmount) {
        this.itemAmount = itemAmount;
    }

    public long getId() {
        return id;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    @Override
    public long id() {
        return this.id;
    }

    @Override
    public void setId(long id) {
        this.id = id;
    }

    @Override
    public List<String> storeFields() {
        return Arrays.asList(new String[]{"id","districtNewsId","title","item_amount"
                ,"qualification","etime","etimeInfo","province","city","stime","content"
                ,"repeat_md5","repeat_md5_2"});
    }

    @Override
    public List<String> indexFields() {
        return Arrays.asList(new String[] {"title","content_index", "province", "city",
                "district","itemAmount","etimeInfo","stime" });
    }

    @Override
    public float boost() {
        return 1.1f;
    }

    @Override
    public Map<String, String> extendStoreDatas() {
        return null;
    }

    @Override
    public Map<String, String> extendIndexDatas() {
        return null;
    }

    @Override
    public List<? extends Searchable> ListAfter(long id, int count) {
        return null;
    }

    @Override
    public int compareTo(Searchable o) {
        return 0;
    }
}
